# $Id: PKGBUILD 181161 2013-04-01 20:10:49Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Mladen Pejakovic <pejakm@gmail.com>

pkgname=libxkbcommon
pkgver=0.3.0
pkgrel=1
pkgdesc="Keyboard handling library using XKB data"
arch=(i686 x86_64)
url="http://xkbcommon.org/"
license=(custom)
depends=(xkeyboard-config)
makedepends=(doxygen xorg-util-macros)
options=('!libtool')
source=("http://xkbcommon.org/download/$pkgname-$pkgver.tar.xz")
md5sums=('22a046100738f99b4cc0297aa210f4e4')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
